package com.manage.demo.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.manage.demo.dao.MangeintoMapper;
import com.manage.demo.dao.model.ExamResults;

@Service
@Transactional
public class MangeintoService {

    @Autowired
	private MangeintoMapper MangeintoMapper;
    
    public ExamResults getResult(String id) {
    	return MangeintoMapper.getResult(id);
    }

    public List<String> getStu11(){return MangeintoMapper.getStu11();}
    public List<String> getStu12(){return MangeintoMapper.getStu12();}
    public List<String> getStu13(){return MangeintoMapper.getStu13();}
    public List<String> getStu14(){return MangeintoMapper.getStu14();}
    public List<String> getStu15(){return MangeintoMapper.getStu15();}
    public List<String> getStu21(){return MangeintoMapper.getStu21();}
    public List<String> getStu22(){return MangeintoMapper.getStu22();}
    public List<String> getStu23(){return MangeintoMapper.getStu23();}
    public List<String> getStu24(){return MangeintoMapper.getStu24();}
    public List<String> getStu25(){return MangeintoMapper.getStu25();}
    public List<String> getStu31(){return MangeintoMapper.getStu31();}
    public List<String> getStu32(){return MangeintoMapper.getStu32();}
    public List<String> getStu33(){return MangeintoMapper.getStu33();}
    public List<String> getStu34(){return MangeintoMapper.getStu34();}
    public List<String> getStu35(){return MangeintoMapper.getStu35();}
    
    
    public List<ExamResults> getExamResults(String stu_id, String term, String exam_type){
    	return MangeintoMapper.getExamResults(stu_id, term, exam_type);
    }
    
    public Integer updateChinsesExamResults(String result, String stu_id, String term, String exam_type) {
    	return MangeintoMapper.updateChinsesExamResults(result, stu_id, term, exam_type);
    }
    
    public Integer updateMathExamResults(String result, String stu_id, String term, String exam_type) {
    	return MangeintoMapper.updateMathExamResults(result, stu_id, term, exam_type);
    }
    
    public Integer updateEnglishExamResults(String result, String stu_id, String term, String exam_type) {
    	return MangeintoMapper.updateEnglishExamResults(result, stu_id, term, exam_type);
    }
    
    public Integer updatePhysicsExamResults(String result, String stu_id, String term, String exam_type) {
    	return MangeintoMapper.updatePhysicsExamResults(result, stu_id, term, exam_type);
    }
    
    public Integer updateChemistryExamResults(String result, String stu_id, String term, String exam_type) {
    	return MangeintoMapper.updateChemistryExamResults(result, stu_id, term, exam_type);
    }
    
    public Integer insertExamResults(String stu_id, String term, String exam_type) {
    	return MangeintoMapper.insertExamResults(stu_id, term, exam_type);
    }
}
